﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;
using System.IO.IsolatedStorage;


namespace PhoneApp6
{
    public partial class SettingPage : PhoneApplicationPage
    {
        private IsolatedStorageFile storage = IsolatedStorageFile.GetUserStoreForApplication();
        string fileName = "1.txt";
        public SettingPage()
        {
            InitializeComponent();
        }

        private void onld(object sender, RoutedEventArgs e)
        {
            textBlock1.Text = IsolatedStorageSettings.ApplicationSettings["sessionid"].ToString(); 
        }

        private void button1_Click(object sender, RoutedEventArgs e)
        {

          
        }
       

        private void button2_Click(object sender, RoutedEventArgs e)
        {
            storage.DeleteFile(fileName);
            textBlock1.Text = "清空缓存成功";
            NavigationService.Navigate(new Uri("/Page1.xaml?flstr=", UriKind.Relative));
        }
        
    }
}